<template>
  <div class="backstageManagement">
    <router-view> </router-view>
    <div class="header-nav">
      
    </div>
    <el-row class="tac">
      <el-col :span="5">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          route
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>账号管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="1-1">选项1</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="1-3">选项3</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-menu-item index="2">
            <i class="el-icon-menu"></i>
            <span slot="title">新闻管理</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
    <JournalismManagement />
    <AccountManagement />
  </div>
</template>

<script>
import JournalismManagement from './journalismManagement'
import AccountManagement from './accountManagement'
export default {
  components: {
    JournalismManagement,
    AccountManagement,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath)
    },
  },
}
</script>
<style scoped>
</style>